//
//  MenuViewController.m
//  Food
//
//  Created by 千锋 on 15/12/26.
//  Copyright (c) 2015年 xiaoqiang. All rights reserved.
//

#import "MenuViewController.h"
#import <RESideMenu.h>
#import "UIBarButtonItem+Util.h"
@interface MenuViewController ()

@end

@implementation MenuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createItem];
    
    self.view.backgroundColor=[UIColor purpleColor];
}

-(void)createItem
{
    
    self.navigationItem.leftBarButtonItem=[UIBarButtonItem generateBarButtonItemWithNormaImageName:@"BtnLeft@2x"highlightedImageName:@"BtnLeft_Hightlight@2x" target:self selector:@selector(leftButtonClicked:)];
    self.navigationItem.rightBarButtonItem=[UIBarButtonItem generateBarButtonItemWithNormaImageName:@"main_xiaoxi@2x"highlightedImageName:nil target:self selector:@selector(rightButtonClicked:)];
}
-(void)leftButtonClicked:(UIBarButtonItem*)sender
{
    [self.sideMenuViewController presentLeftMenuViewController];
}
-(void)rightButtonClicked:(UIBarButtonItem*)sender
{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
